package com.example.fw;

import org.openqa.selenium.By;

public class NavigationWorker extends BaseWorker {

	public NavigationWorker(ApplicationManager manager) {
		super(manager);
	}

	public void gotoGroupsPage() {
		click(By.linkText("groups"));
	}

	public void returntoGroupsPage() {
		click(By.linkText("group page"));
	}

	public void openMainPage() {
		driver.get(manager.baseUrl + "/addressbook/index.php");
	}

	public void gotoHomePage() {
		click(By.linkText("home page"));
	}

	public void gotoAddNewContact() {
		click(By.linkText("add new"));
	}
}
